import link from "./service2"
const submitForm = (formEl: any | undefined) => {
  if (!formEl) return;
  formEl.validate((valid:any) => {
    if (valid) {
      console.log("submit!");
      // 发送请求
      link("http://10.3.132.84:10086").then((ok) => {
        console.log(ok);
      });
    } else {
      console.log("error submit!");
      return false;
    }
  });
};
